//
//  YFTempViewController.swift
//  微博
//
//  Created by 余仿 on 16/4/8.
//  Copyright © 2016年 YF. All rights reserved.
//

import UIKit

class YFTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

       setupUI()
    }

    func setupUI(){
        
        self.view.backgroundColor = UIColor.whiteColor()

        navigationItem.leftBarButtonItem = UIBarButtonItem(imageName: "navigationbar_back_withtext", title: "返回", target: self, action: "pop")

        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch", title: nil, target: self, action: "push")

    }
    //MARK:左边按钮的监听方法
    func pop(){

        navigationController?.popViewControllerAnimated(true)

    }

    //MARK:右边按钮的监听方法
    func push(){
        //跳转控制器
        let vc = YFTempViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }
}
